package com.xckj.cycling.utils

import java.math.BigDecimal

object RouteUtils {


    fun getDuration(double: Double): String {
        return BigDecimal(double / 60).setScale(2, BigDecimal.ROUND_DOWN).toString() + "分钟";
    }

    fun getDistance(double: Double): String {
        return "${BigDecimal(double / 1000).setScale(2, BigDecimal.ROUND_DOWN)} km"
    }
}